package za.org.jcicada.datastore.messages;

import java.util.Date;
import java.util.List;

import za.org.jcicada.genss.messages.ReplyMessage;
import za.org.jcicada.genss.messages.Result;
import za.org.jcicada.genss.sensor.ISensorValue;
import za.org.jcicada.genss.sensor.SensorURN;

public class SensorHistoryReply extends ReplyMessage {

	private static final long serialVersionUID = 1L;

	SensorURN sensorURN;
	Date from;
	Date to;
	List<ISensorValue> values;
	
	public SensorHistoryReply(Result result, SensorURN sensorURN, Date from, Date to, List<ISensorValue> values) {
		super(result);
		this.sensorURN = sensorURN;
		this.from = from;
		this.to = to;
		this.values = values;
	}

	public SensorURN getSensorURN() {
		return sensorURN;
	}

	public Date getFrom() {
		return from;
	}

	public Date getTo() {
		return to;
	}

	public List<ISensorValue> getValues() {
		return values;
	}
}
